package com.ruoyi.tccs.tccs_major_judge.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tccs.tccs_major_judge.mapper.TccsMajorJudgeMapper;
import com.ruoyi.tccs.tccs_major_judge.domain.TccsMajorJudge;
import com.ruoyi.tccs.tccs_major_judge.service.ITccsMajorJudgeService;

/**
 * tccs判断Service业务层处理
 * 
 * @author RenZhengYang
 * @date 2024-04-08
 */
@Service
public class TccsMajorJudgeServiceImpl implements ITccsMajorJudgeService 
{
    @Autowired
    private TccsMajorJudgeMapper tccsMajorJudgeMapper;

    /**
     * 查询tccs判断
     * 
     * @param id tccs判断主键
     * @return tccs判断
     */
    @Override
    public TccsMajorJudge selectTccsMajorJudgeById(Long id)
    {
        return tccsMajorJudgeMapper.selectTccsMajorJudgeById(id);
    }

    /**
     * 查询tccs判断列表
     * 
     * @param tccsMajorJudge tccs判断
     * @return tccs判断
     */
    @Override
    public List<TccsMajorJudge> selectTccsMajorJudgeList(TccsMajorJudge tccsMajorJudge)
    {
        return tccsMajorJudgeMapper.selectTccsMajorJudgeList(tccsMajorJudge);
    }

    /**
     * 新增tccs判断
     * 
     * @param tccsMajorJudge tccs判断
     * @return 结果
     */
    @Override
    public int insertTccsMajorJudge(TccsMajorJudge tccsMajorJudge)
    {
        tccsMajorJudge.setCreateTime(DateUtils.getNowDate());
        return tccsMajorJudgeMapper.insertTccsMajorJudge(tccsMajorJudge);
    }

    /**
     * 修改tccs判断
     * 
     * @param tccsMajorJudge tccs判断
     * @return 结果
     */
    @Override
    public int updateTccsMajorJudge(TccsMajorJudge tccsMajorJudge)
    {
        tccsMajorJudge.setUpdateTime(DateUtils.getNowDate());
        return tccsMajorJudgeMapper.updateTccsMajorJudge(tccsMajorJudge);
    }

    /**
     * 批量删除tccs判断
     * 
     * @param ids 需要删除的tccs判断主键
     * @return 结果
     */
    @Override
    public int deleteTccsMajorJudgeByIds(Long[] ids)
    {
        return tccsMajorJudgeMapper.deleteTccsMajorJudgeByIds(ids);
    }

    /**
     * 删除tccs判断信息
     * 
     * @param id tccs判断主键
     * @return 结果
     */
    @Override
    public int deleteTccsMajorJudgeById(Long id)
    {
        return tccsMajorJudgeMapper.deleteTccsMajorJudgeById(id);
    }
}
